<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <title>7.获取列表高度</title>
    <style>
        .list {
            width: 100px;
            height: 150px;
            background-color: aquamarine;
            overflow-y: auto;
        }

        .news {
            height: 30px;
        }
    </style>
    <!-- <script type="text/javascript" src="../js/vue.js"></script> -->
</head>

<body>
    <div class="list" style="">
        <div class="news">新闻8</div>
        <div class="news">新闻7</div>
        <div class="news">新闻6</div>
        <div class="news">新闻5</div>
        <div class="news">新闻4</div>
        <div class="news">新闻3</div>
        <div class="news">新闻2</div>
        <div class="news">新闻1</div>
    </div>
    <script type="text/javascript"></script>
</body>

</html>